/**
 * 	write on 2005-10-26 12:46:15.
 */
package org.nanhill.xmlro.gsp.packet;

/**
 * @author alin
 * 
 */
public class SetServiceResponsePacket<E> extends AbstractPacket<E> {

	private int code;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	private String commond = "";

	public String getCommond() {
		return commond;
	}

	public void setCommond(String code) {
		this.commond = code;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.gsp.type.packet.GspPacket#getBeginTag()
	 */
	public void appendBeginTag(StringBuilder builder) {
		builder.append("<SetResp code=\"");
		builder.append(this.code);
		builder.append("\" id=\"");
		builder.append(id);
		builder.append("\" cmd=\"");
		builder.append(commond);
		builder.append("\">");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.gsp.type.packet.GspPacket#getEndTag()
	 */
	public void appendEndTag(StringBuilder builder) {
		builder.append("</SetResp>");
	}

}
